import { serviceManager } from "../enums";
import { $t } from "@/plugins/i18n";

// 最简代码，也就是这些字段必须有
export default {
  path: "/serviceManager",
  // redirect: "/options/index",
  meta: {
    icon: "simple-icons:nginxproxymanager",
    title: "服务管理",
    rank: serviceManager,
    showLink: true
  },
  children: [
    {
      path: "/serviceManager/app-manager",
      name: "app-manager",
      component: () => import("@/views/service-manager/application/index.vue"),
      meta: {
        title: "应用发布管理"
      }
    },
    {
      path: "/serviceManager/api-manager",
      name: "pub-api-manager",
      component: () => import("@/views/service-manager/pub-api/index.vue"),
      meta: {
        title: "API发布管理"
      }
    },
    {
      path: "/serviceManager/call-api",
      name: "call-api-manager",
      component: () => import("@/views/service-manager/call-api/index.vue"),
      meta: {
        title: "API市场"
      }
    }
    ,
    {
      path: "/serviceManager/sub-api",
      name: "sub-api-manager",
      component: () => import("@/views/service-manager/sub-api/index.vue"),
      meta: {
        title: "已订阅API"
      }
    }
  ]
};
